/*
 * $Id: AbstractCfgCodeDetails.java,v 1.5 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Wed Dec 31 15:32:26 CST 2008 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the CFG_CODE_DETAILS table. You can
 * customize the behavior of this class by editing the class, {@link
 * CfgCodeDetails()}. WARNING: DO NOT EDIT THIS FILE. This is a generated file
 * that is synchronized by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractCfgCodeDetails implements Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 72681964091188827L;

	/**
	 * The cached hash code value for this instance. Settting to 0 triggers
	 * re-calculation.
	 */
	private int hashValue = 0;

	/** The composite primary key value. */
	private java.lang.Long codeId;

	/** The value of the simple codeName property. */
	private java.lang.String codeName;

	/** The value of the simple codeDesc property. */
	private java.lang.String codeDesc;

	private java.lang.Character codeGroup;

	/**
	 * Simple constructor of AbstractCfgCodeDetails instances.
	 */
	public AbstractCfgCodeDetails() {
	}

	/**
	 * Constructor of AbstractCfgCodeDetails instances given a simple primary
	 * key.
	 * 
	 * @param codeId
	 */
	public AbstractCfgCodeDetails(java.lang.Long codeId) {
		this.setCodeId(codeId);
	}

	/**
	 * Return the simple primary key value that identifies this object.
	 * 
	 * @return java.lang.Long
	 */
	public java.lang.Long getCodeId() {
		return codeId;
	}

	/**
	 * Set the simple primary key value that identifies this object.
	 * 
	 * @param codeId
	 */
	public void setCodeId(java.lang.Long codeId) {
		this.hashValue = 0;
		this.codeId = codeId;
	}

	/**
	 * Return the value of the CODE_NAME column.
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getCodeName() {
		return this.codeName;
	}

	/**
	 * Set the value of the CODE_NAME column.
	 * 
	 * @param codeName
	 */
	public void setCodeName(java.lang.String codeName) {
		this.codeName = codeName;
	}

	/**
	 * Return the value of the CODE_DESC column.
	 * 
	 * @return java.lang.String
	 */
	public java.lang.String getCodeDesc() {
		return this.codeDesc;
	}

	/**
	 * Set the value of the CODE_DESC column.
	 * 
	 * @param codeDesc
	 */
	public void setCodeDesc(java.lang.String codeDesc) {
		this.codeDesc = codeDesc;
	}

	/**
	 * Implementation of the equals comparison on the basis of equality of the
	 * primary key values.
	 * 
	 * @param rhs
	 * @return boolean
	 */
	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof CfgCodeDetails))
			return false;
		CfgCodeDetails that = (CfgCodeDetails) rhs;
		if (this.getCodeId() == null || that.getCodeId() == null)
			return false;
		return (this.getCodeId().equals(that.getCodeId()));
	}

	/**
	 * Implementation of the hashCode method conforming to the Bloch pattern
	 * with the exception of array properties (these are very unlikely primary
	 * key types).
	 * 
	 * @return int
	 */
	public int hashCode() {
		if (this.hashValue == 0) {
			int result = 17;
			int codeIdValue = this.getCodeId() == null ? 0 : this.getCodeId()
					.hashCode();
			result = result * 37 + codeIdValue;
			this.hashValue = result;
		}
		return this.hashValue;
	}

	/**
	 * @return the codeGroup
	 */
	public java.lang.Character getCodeGroup() {
		return codeGroup;
	}

	/**
	 * @param codeGroup
	 *            the codeGroup to set
	 */
	public void setCodeGroup(java.lang.Character codeGroup) {
		this.codeGroup = codeGroup;
	}
}
